<!DOCTYPE HTML>

<html lang="en">
<head>

<title>GlobalMethodSecurityConfiguration (spring-security-docs 5.6.3 API)</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="../../../../../../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../../../../jquery/jquery-ui.css" title="Style">
<script type="text/javascript" src="../../../../../../../script.js"></script>
<script type="text/javascript" src="../../../../../../../jquery/jszip/dist/jszip.min.js"></script>
<script type="text/javascript" src="../../../../../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script>
<!--[if IE]>
<script type="text/javascript" src="../../../../../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script>
<![endif]-->
<script type="text/javascript" src="../../../../../../../jquery/jquery-3.5.1.js"></script>
<script type="text/javascript" src="../../../../../../../jquery/jquery-ui.js"></script>
</head>
<body>
<script type="text/javascript"><!--
    try {
        if (location.href.indexOf('is-external=true') == -1) {
            parent.document.title="GlobalMethodSecurityConfiguration (spring-security-docs 5.6.3 API)";
        }
    }
    catch(err) {
    }
//-->
var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
var pathtoroot = "../../../../../../../";
var useModuleDirectories = true;
loadScripts(document, 'script');</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<header role="banner">
<nav role="navigation">
<div class="fixedNav">

<div class="topNav"><a id="navbar.top">

</a>
<div class="skipNav"><a href="GlobalMethodSecurityConfiguration.html#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.top.firstrow">

</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../../../allclasses.html">All&nbsp;Classes</a></li>
</ul>
<ul class="navListSearch">
<li><label for="search">SEARCH:</label>
<input type="text" id="search" value="search" disabled="disabled">
<input type="reset" id="reset" value="reset" disabled="disabled">
</li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_top");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="GlobalMethodSecurityConfiguration.html#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="GlobalMethodSecurityConfiguration.html#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="GlobalMethodSecurityConfiguration.html#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="GlobalMethodSecurityConfiguration.html#method.detail">Method</a></li>
</ul>
</div>
<a id="skip.navbar.top">

</a></div>

</div>
<div class="navPadding">&nbsp;</div>
<script type="text/javascript"><!--
$('.navPadding').css('padding-top', $('.fixedNav').css("height"));
//-->
</script>
</nav>
</header>

<main role="main">
<div class="header">
<div class="subTitle"><span class="packageLabelInType">Package</span>&nbsp;<a href="package-summary.html">org.springframework.security.config.annotation.method.configuration</a></div>
<h2 title="Class GlobalMethodSecurityConfiguration" class="title">Class GlobalMethodSecurityConfiguration</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>org.springframework.security.config.annotation.method.configuration.GlobalMethodSecurityConfiguration</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><code>org.springframework.beans.factory.Aware</code>, <code>org.springframework.beans.factory.BeanFactoryAware</code>, <code>org.springframework.beans.factory.SmartInitializingSingleton</code>, <code>org.springframework.context.annotation.ImportAware</code></dd>
</dl>
<hr>
<pre>@Configuration(proxyBeanMethods=false)
@Role(2)
public class <span class="typeNameLabel">GlobalMethodSecurityConfiguration</span>
extends java.lang.Object
implements org.springframework.context.annotation.ImportAware, org.springframework.beans.factory.SmartInitializingSingleton, org.springframework.beans.factory.BeanFactoryAware</pre>
<div class="block">Base <code>Configuration</code> for enabling global method security. Classes may extend this
class to customize the defaults, but must be sure to specify the
<a href="EnableGlobalMethodSecurity.html" title="annotation in org.springframework.security.config.annotation.method.configuration"><code>EnableGlobalMethodSecurity</code></a> annotation on the subclass.</div>
<dl>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>3.2</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="EnableGlobalMethodSecurity.html" title="annotation in org.springframework.security.config.annotation.method.configuration"><code>EnableGlobalMethodSecurity</code></a></dd>
</dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">

<section role="region">
<ul class="blockList">
<li class="blockList"><a id="constructor.summary">

</a>
<h3>Constructor Summary</h3>
<table class="memberSummary">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Constructor</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr class="altColor">
<th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="GlobalMethodSecurityConfiguration.html#%3Cinit%3E()">GlobalMethodSecurityConfiguration</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
</table>
</li>
</ul>
</section>

<section role="region">
<ul class="blockList">
<li class="blockList"><a id="method.summary">

</a>
<h3>Method Summary</h3>
<table class="memberSummary">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Method</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>protected <a href="../../../../access/AccessDecisionManager.html" title="interface in org.springframework.security.access">AccessDecisionManager</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="GlobalMethodSecurityConfiguration.html#accessDecisionManager()">accessDecisionManager</a></span>()</code></th>
<td class="colLast">
<div class="block">Allows subclasses to provide a custom <a href="../../../../access/AccessDecisionManager.html" title="interface in org.springframework.security.access"><code>AccessDecisionManager</code></a>.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>protected <a href="../../../../access/intercept/AfterInvocationManager.html" title="interface in org.springframework.security.access.intercept">AfterInvocationManager</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="GlobalMethodSecurityConfiguration.html#afterInvocationManager()">afterInvocationManager</a></span>()</code></th>
<td class="colLast">
<div class="block">Provide a custom <a href="../../../../access/intercept/AfterInvocationManager.html" title="interface in org.springframework.security.access.intercept"><code>AfterInvocationManager</code></a> for the default implementation of
<a href="GlobalMethodSecurityConfiguration.html#methodSecurityInterceptor(org.springframework.security.access.method.MethodSecurityMetadataSource)"><code>methodSecurityInterceptor(MethodSecurityMetadataSource)</code></a>.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="GlobalMethodSecurityConfiguration.html#afterSingletonsInstantiated()">afterSingletonsInstantiated</a></span>()</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>protected <a href="../../../../authentication/AuthenticationManager.html" title="interface in org.springframework.security.authentication">AuthenticationManager</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="GlobalMethodSecurityConfiguration.html#authenticationManager()">authenticationManager</a></span>()</code></th>
<td class="colLast">
<div class="block">Allows providing a custom <a href="../../../../authentication/AuthenticationManager.html" title="interface in org.springframework.security.authentication"><code>AuthenticationManager</code></a>.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>protected void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="GlobalMethodSecurityConfiguration.html#configure(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder)">configure</a></span>&#8203;(<a href="../../authentication/builders/AuthenticationManagerBuilder.html" title="class in org.springframework.security.config.annotation.authentication.builders">AuthenticationManagerBuilder</a>&nbsp;auth)</code></th>
<td class="colLast">
<div class="block">Sub classes can override this method to register different types of authentication.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>protected <a href="../../../../access/expression/method/MethodSecurityExpressionHandler.html" title="interface in org.springframework.security.access.expression.method">MethodSecurityExpressionHandler</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="GlobalMethodSecurityConfiguration.html#createExpressionHandler()">createExpressionHandler</a></span>()</code></th>
<td class="colLast">
<div class="block">Provide a <a href="../../../../access/expression/method/MethodSecurityExpressionHandler.html" title="interface in org.springframework.security.access.expression.method"><code>MethodSecurityExpressionHandler</code></a> that is registered with the
<a href="../../../../access/expression/method/ExpressionBasedPreInvocationAdvice.html" title="class in org.springframework.security.access.expression.method"><code>ExpressionBasedPreInvocationAdvice</code></a>.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>protected <a href="../../../../access/method/MethodSecurityMetadataSource.html" title="interface in org.springframework.security.access.method">MethodSecurityMetadataSource</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="GlobalMethodSecurityConfiguration.html#customMethodSecurityMetadataSource()">customMethodSecurityMetadataSource</a></span>()</code></th>
<td class="colLast">
<div class="block">Provides a custom <a href="../../../../access/method/MethodSecurityMetadataSource.html" title="interface in org.springframework.security.access.method"><code>MethodSecurityMetadataSource</code></a> that is registered with the
<a href="GlobalMethodSecurityConfiguration.html#methodSecurityMetadataSource()"><code>methodSecurityMetadataSource()</code></a>.</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>protected <a href="../../../../access/expression/method/MethodSecurityExpressionHandler.html" title="interface in org.springframework.security.access.expression.method">MethodSecurityExpressionHandler</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="GlobalMethodSecurityConfiguration.html#getExpressionHandler()">getExpressionHandler</a></span>()</code></th>
<td class="colLast">
<div class="block">Gets the <a href="../../../../access/expression/method/MethodSecurityExpressionHandler.html" title="interface in org.springframework.security.access.expression.method"><code>MethodSecurityExpressionHandler</code></a> or creates it using
<a href="GlobalMethodSecurityConfiguration.html#expressionHandler"><code>expressionHandler</code></a>.</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>org.aopalliance.intercept.MethodInterceptor</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="GlobalMethodSecurityConfiguration.html#methodSecurityInterceptor(org.springframework.security.access.method.MethodSecurityMetadataSource)">methodSecurityInterceptor</a></span>&#8203;(<a href="../../../../access/method/MethodSecurityMetadataSource.html" title="interface in org.springframework.security.access.method">MethodSecurityMetadataSource</a>&nbsp;methodSecurityMetadataSource)</code></th>
<td class="colLast">
<div class="block">Creates the default MethodInterceptor which is a MethodSecurityInterceptor using
the following methods to construct it.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code><a href="../../../../access/method/MethodSecurityMetadataSource.html" title="interface in org.springframework.security.access.method">MethodSecurityMetadataSource</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="GlobalMethodSecurityConfiguration.html#methodSecurityMetadataSource()">methodSecurityMetadataSource</a></span>()</code></th>
<td class="colLast">
<div class="block">Provides the default <a href="../../../../access/method/MethodSecurityMetadataSource.html" title="interface in org.springframework.security.access.method"><code>MethodSecurityMetadataSource</code></a> that will be used.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code><a href="../../../../access/prepost/PreInvocationAuthorizationAdvice.html" title="interface in org.springframework.security.access.prepost">PreInvocationAuthorizationAdvice</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="GlobalMethodSecurityConfiguration.html#preInvocationAuthorizationAdvice()">preInvocationAuthorizationAdvice</a></span>()</code></th>
<td class="colLast">
<div class="block">Creates the <a href="../../../../access/prepost/PreInvocationAuthorizationAdvice.html" title="interface in org.springframework.security.access.prepost"><code>PreInvocationAuthorizationAdvice</code></a> to be used.</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>protected <a href="../../../../access/intercept/RunAsManager.html" title="interface in org.springframework.security.access.intercept">RunAsManager</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="GlobalMethodSecurityConfiguration.html#runAsManager()">runAsManager</a></span>()</code></th>
<td class="colLast">
<div class="block">Provide a custom <a href="../../../../access/intercept/RunAsManager.html" title="interface in org.springframework.security.access.intercept"><code>RunAsManager</code></a> for the default implementation of
<a href="GlobalMethodSecurityConfiguration.html#methodSecurityInterceptor(org.springframework.security.access.method.MethodSecurityMetadataSource)"><code>methodSecurityInterceptor(MethodSecurityMetadataSource)</code></a>.</div>
</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="GlobalMethodSecurityConfiguration.html#setBeanFactory(org.springframework.beans.factory.BeanFactory)">setBeanFactory</a></span>&#8203;(org.springframework.beans.factory.BeanFactory&nbsp;beanFactory)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="GlobalMethodSecurityConfiguration.html#setImportMetadata(org.springframework.core.type.AnnotationMetadata)">setImportMetadata</a></span>&#8203;(org.springframework.core.type.AnnotationMetadata&nbsp;importMetadata)</code></th>
<td class="colLast">
<div class="block">Obtains the attributes from <a href="EnableGlobalMethodSecurity.html" title="annotation in org.springframework.security.config.annotation.method.configuration"><code>EnableGlobalMethodSecurity</code></a> if this class was
imported using the <a href="EnableGlobalMethodSecurity.html" title="annotation in org.springframework.security.config.annotation.method.configuration"><code>EnableGlobalMethodSecurity</code></a> annotation.</div>
</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="GlobalMethodSecurityConfiguration.html#setMethodSecurityExpressionHandler(java.util.List)">setMethodSecurityExpressionHandler</a></span>&#8203;(java.util.List&lt;<a href="../../../../access/expression/method/MethodSecurityExpressionHandler.html" title="interface in org.springframework.security.access.expression.method">MethodSecurityExpressionHandler</a>&gt;&nbsp;handlers)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="GlobalMethodSecurityConfiguration.html#setObjectPostProcessor(org.springframework.security.config.annotation.ObjectPostProcessor)">setObjectPostProcessor</a></span>&#8203;(<a href="../../ObjectPostProcessor.html" title="interface in org.springframework.security.config.annotation">ObjectPostProcessor</a>&lt;java.lang.Object&gt;&nbsp;objectPostProcessor)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a id="methods.inherited.from.class.java.lang.Object">

</a>
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</section>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">

<section role="region">
<ul class="blockList">
<li class="blockList"><a id="constructor.detail">

</a>
<h3>Constructor Detail</h3>
<a id="&lt;init&gt;()">

</a>
<ul class="blockListLast">
<li class="blockList">
<h4>GlobalMethodSecurityConfiguration</h4>
<pre>public&nbsp;GlobalMethodSecurityConfiguration()</pre>
</li>
</ul>
</li>
</ul>
</section>

<section role="region">
<ul class="blockList">
<li class="blockList"><a id="method.detail">

</a>
<h3>Method Detail</h3>
<a id="methodSecurityInterceptor(org.springframework.security.access.method.MethodSecurityMetadataSource)">

</a>
<ul class="blockList">
<li class="blockList">
<h4>methodSecurityInterceptor</h4>
<pre class="methodSignature">@Bean
public&nbsp;org.aopalliance.intercept.MethodInterceptor&nbsp;methodSecurityInterceptor&#8203;(<a href="../../../../access/method/MethodSecurityMetadataSource.html" title="interface in org.springframework.security.access.method">MethodSecurityMetadataSource</a>&nbsp;methodSecurityMetadataSource)</pre>
<div class="block">Creates the default MethodInterceptor which is a MethodSecurityInterceptor using
the following methods to construct it.
<ul>
<li><a href="GlobalMethodSecurityConfiguration.html#accessDecisionManager()"><code>accessDecisionManager()</code></a></li>
<li><a href="GlobalMethodSecurityConfiguration.html#afterInvocationManager()"><code>afterInvocationManager()</code></a></li>
<li><a href="GlobalMethodSecurityConfiguration.html#authenticationManager()"><code>authenticationManager()</code></a></li>
<li><a href="GlobalMethodSecurityConfiguration.html#runAsManager()"><code>runAsManager()</code></a></li>
</ul>
<p>
Subclasses can override this method to provide a different
<code>MethodInterceptor</code>.
</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>methodSecurityMetadataSource</code> - the default
<a href="../../../../access/method/MethodSecurityMetadataSource.html" title="interface in org.springframework.security.access.method"><code>MethodSecurityMetadataSource</code></a>.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the <code>MethodInterceptor</code>.</dd>
</dl>
</li>
</ul>
<a id="afterSingletonsInstantiated()">

</a>
<ul class="blockList">
<li class="blockList">
<h4>afterSingletonsInstantiated</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;afterSingletonsInstantiated()</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code>afterSingletonsInstantiated</code>&nbsp;in interface&nbsp;<code>org.springframework.beans.factory.SmartInitializingSingleton</code></dd>
</dl>
</li>
</ul>
<a id="afterInvocationManager()">

</a>
<ul class="blockList">
<li class="blockList">
<h4>afterInvocationManager</h4>
<pre class="methodSignature">protected&nbsp;<a href="../../../../access/intercept/AfterInvocationManager.html" title="interface in org.springframework.security.access.intercept">AfterInvocationManager</a>&nbsp;afterInvocationManager()</pre>
<div class="block">Provide a custom <a href="../../../../access/intercept/AfterInvocationManager.html" title="interface in org.springframework.security.access.intercept"><code>AfterInvocationManager</code></a> for the default implementation of
<a href="GlobalMethodSecurityConfiguration.html#methodSecurityInterceptor(org.springframework.security.access.method.MethodSecurityMetadataSource)"><code>methodSecurityInterceptor(MethodSecurityMetadataSource)</code></a>. The default is
null if pre post is not enabled. Otherwise, it returns a
<a href="../../../../access/intercept/AfterInvocationProviderManager.html" title="class in org.springframework.security.access.intercept"><code>AfterInvocationProviderManager</code></a>.
<p>
Subclasses should override this method to provide a custom
<a href="../../../../access/intercept/AfterInvocationManager.html" title="interface in org.springframework.security.access.intercept"><code>AfterInvocationManager</code></a>
</p></div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the <a href="../../../../access/intercept/AfterInvocationManager.html" title="interface in org.springframework.security.access.intercept"><code>AfterInvocationManager</code></a> to use</dd>
</dl>
</li>
</ul>
<a id="runAsManager()">

</a>
<ul class="blockList">
<li class="blockList">
<h4>runAsManager</h4>
<pre class="methodSignature">protected&nbsp;<a href="../../../../access/intercept/RunAsManager.html" title="interface in org.springframework.security.access.intercept">RunAsManager</a>&nbsp;runAsManager()</pre>
<div class="block">Provide a custom <a href="../../../../access/intercept/RunAsManager.html" title="interface in org.springframework.security.access.intercept"><code>RunAsManager</code></a> for the default implementation of
<a href="GlobalMethodSecurityConfiguration.html#methodSecurityInterceptor(org.springframework.security.access.method.MethodSecurityMetadataSource)"><code>methodSecurityInterceptor(MethodSecurityMetadataSource)</code></a>. The default is
null.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the <a href="../../../../access/intercept/RunAsManager.html" title="interface in org.springframework.security.access.intercept"><code>RunAsManager</code></a> to use</dd>
</dl>
</li>
</ul>
<a id="accessDecisionManager()">

</a>
<ul class="blockList">
<li class="blockList">
<h4>accessDecisionManager</h4>
<pre class="methodSignature">protected&nbsp;<a href="../../../../access/AccessDecisionManager.html" title="interface in org.springframework.security.access">AccessDecisionManager</a>&nbsp;accessDecisionManager()</pre>
<div class="block">Allows subclasses to provide a custom <a href="../../../../access/AccessDecisionManager.html" title="interface in org.springframework.security.access"><code>AccessDecisionManager</code></a>. The default is
a <a href="../../../../access/vote/AffirmativeBased.html" title="class in org.springframework.security.access.vote"><code>AffirmativeBased</code></a> with the following voters:
<ul>
<li><a href="../../../../access/prepost/PreInvocationAuthorizationAdviceVoter.html" title="class in org.springframework.security.access.prepost"><code>PreInvocationAuthorizationAdviceVoter</code></a></li>
<li><a href="../../../../access/vote/RoleVoter.html" title="class in org.springframework.security.access.vote"><code>RoleVoter</code></a></li>
<li><a href="../../../../access/vote/AuthenticatedVoter.html" title="class in org.springframework.security.access.vote"><code>AuthenticatedVoter</code></a></li>
</ul></div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the <a href="../../../../access/AccessDecisionManager.html" title="interface in org.springframework.security.access"><code>AccessDecisionManager</code></a> to use</dd>
</dl>
</li>
</ul>
<a id="createExpressionHandler()">

</a>
<ul class="blockList">
<li class="blockList">
<h4>createExpressionHandler</h4>
<pre class="methodSignature">protected&nbsp;<a href="../../../../access/expression/method/MethodSecurityExpressionHandler.html" title="interface in org.springframework.security.access.expression.method">MethodSecurityExpressionHandler</a>&nbsp;createExpressionHandler()</pre>
<div class="block">Provide a <a href="../../../../access/expression/method/MethodSecurityExpressionHandler.html" title="interface in org.springframework.security.access.expression.method"><code>MethodSecurityExpressionHandler</code></a> that is registered with the
<a href="../../../../access/expression/method/ExpressionBasedPreInvocationAdvice.html" title="class in org.springframework.security.access.expression.method"><code>ExpressionBasedPreInvocationAdvice</code></a>. The default is
<a href="../../../../access/expression/method/DefaultMethodSecurityExpressionHandler.html" title="class in org.springframework.security.access.expression.method"><code>DefaultMethodSecurityExpressionHandler</code></a> which optionally will Autowire an
<a href="../../../../authentication/AuthenticationTrustResolver.html" title="interface in org.springframework.security.authentication"><code>AuthenticationTrustResolver</code></a>.
<p>
Subclasses may override this method to provide a custom
<a href="../../../../access/expression/method/MethodSecurityExpressionHandler.html" title="interface in org.springframework.security.access.expression.method"><code>MethodSecurityExpressionHandler</code></a>
</p></div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the <a href="../../../../access/expression/method/MethodSecurityExpressionHandler.html" title="interface in org.springframework.security.access.expression.method"><code>MethodSecurityExpressionHandler</code></a> to use</dd>
</dl>
</li>
</ul>
<a id="getExpressionHandler()">

</a>
<ul class="blockList">
<li class="blockList">
<h4>getExpressionHandler</h4>
<pre class="methodSignature">protected final&nbsp;<a href="../../../../access/expression/method/MethodSecurityExpressionHandler.html" title="interface in org.springframework.security.access.expression.method">MethodSecurityExpressionHandler</a>&nbsp;getExpressionHandler()</pre>
<div class="block">Gets the <a href="../../../../access/expression/method/MethodSecurityExpressionHandler.html" title="interface in org.springframework.security.access.expression.method"><code>MethodSecurityExpressionHandler</code></a> or creates it using
<a href="GlobalMethodSecurityConfiguration.html#expressionHandler"><code>expressionHandler</code></a>.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a non <code>null</code> <a href="../../../../access/expression/method/MethodSecurityExpressionHandler.html" title="interface in org.springframework.security.access.expression.method"><code>MethodSecurityExpressionHandler</code></a></dd>
</dl>
</li>
</ul>
<a id="customMethodSecurityMetadataSource()">

</a>
<ul class="blockList">
<li class="blockList">
<h4>customMethodSecurityMetadataSource</h4>
<pre class="methodSignature">protected&nbsp;<a href="../../../../access/method/MethodSecurityMetadataSource.html" title="interface in org.springframework.security.access.method">MethodSecurityMetadataSource</a>&nbsp;customMethodSecurityMetadataSource()</pre>
<div class="block">Provides a custom <a href="../../../../access/method/MethodSecurityMetadataSource.html" title="interface in org.springframework.security.access.method"><code>MethodSecurityMetadataSource</code></a> that is registered with the
<a href="GlobalMethodSecurityConfiguration.html#methodSecurityMetadataSource()"><code>methodSecurityMetadataSource()</code></a>. Default is null.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a custom <a href="../../../../access/method/MethodSecurityMetadataSource.html" title="interface in org.springframework.security.access.method"><code>MethodSecurityMetadataSource</code></a> that is registered with the
<a href="GlobalMethodSecurityConfiguration.html#methodSecurityMetadataSource()"><code>methodSecurityMetadataSource()</code></a></dd>
</dl>
</li>
</ul>
<a id="authenticationManager()">

</a>
<ul class="blockList">
<li class="blockList">
<h4>authenticationManager</h4>
<pre class="methodSignature">protected&nbsp;<a href="../../../../authentication/AuthenticationManager.html" title="interface in org.springframework.security.authentication">AuthenticationManager</a>&nbsp;authenticationManager()
                                               throws java.lang.Exception</pre>
<div class="block">Allows providing a custom <a href="../../../../authentication/AuthenticationManager.html" title="interface in org.springframework.security.authentication"><code>AuthenticationManager</code></a>. The default is to use any
authentication mechanisms registered by
<a href="GlobalMethodSecurityConfiguration.html#configure(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder)"><code>configure(AuthenticationManagerBuilder)</code></a>. If
<a href="GlobalMethodSecurityConfiguration.html#configure(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder)"><code>configure(AuthenticationManagerBuilder)</code></a> was not overridden, then an
<a href="../../../../authentication/AuthenticationManager.html" title="interface in org.springframework.security.authentication"><code>AuthenticationManager</code></a> is attempted to be autowired by type.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the <a href="../../../../authentication/AuthenticationManager.html" title="interface in org.springframework.security.authentication"><code>AuthenticationManager</code></a> to use</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.Exception</code></dd>
</dl>
</li>
</ul>
<a id="configure(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder)">

</a>
<ul class="blockList">
<li class="blockList">
<h4>configure</h4>
<pre class="methodSignature">protected&nbsp;void&nbsp;configure&#8203;(<a href="../../authentication/builders/AuthenticationManagerBuilder.html" title="class in org.springframework.security.config.annotation.authentication.builders">AuthenticationManagerBuilder</a>&nbsp;auth)
                  throws java.lang.Exception</pre>
<div class="block">Sub classes can override this method to register different types of authentication.
If not overridden, <a href="GlobalMethodSecurityConfiguration.html#configure(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder)"><code>configure(AuthenticationManagerBuilder)</code></a> will attempt to
autowire by type.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>auth</code> - the <a href="../../authentication/builders/AuthenticationManagerBuilder.html" title="class in org.springframework.security.config.annotation.authentication.builders"><code>AuthenticationManagerBuilder</code></a> used to register different
authentication mechanisms for the global method security.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.Exception</code></dd>
</dl>
</li>
</ul>
<a id="methodSecurityMetadataSource()">

</a>
<ul class="blockList">
<li class="blockList">
<h4>methodSecurityMetadataSource</h4>
<pre class="methodSignature">@Bean
@Role(2)
public&nbsp;<a href="../../../../access/method/MethodSecurityMetadataSource.html" title="interface in org.springframework.security.access.method">MethodSecurityMetadataSource</a>&nbsp;methodSecurityMetadataSource()</pre>
<div class="block">Provides the default <a href="../../../../access/method/MethodSecurityMetadataSource.html" title="interface in org.springframework.security.access.method"><code>MethodSecurityMetadataSource</code></a> that will be used. It
creates a <a href="../../../../access/method/DelegatingMethodSecurityMetadataSource.html" title="class in org.springframework.security.access.method"><code>DelegatingMethodSecurityMetadataSource</code></a> based upon
<a href="GlobalMethodSecurityConfiguration.html#customMethodSecurityMetadataSource()"><code>customMethodSecurityMetadataSource()</code></a> and the attributes on
<a href="EnableGlobalMethodSecurity.html" title="annotation in org.springframework.security.config.annotation.method.configuration"><code>EnableGlobalMethodSecurity</code></a>.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the <a href="../../../../access/method/MethodSecurityMetadataSource.html" title="interface in org.springframework.security.access.method"><code>MethodSecurityMetadataSource</code></a></dd>
</dl>
</li>
</ul>
<a id="preInvocationAuthorizationAdvice()">

</a>
<ul class="blockList">
<li class="blockList">
<h4>preInvocationAuthorizationAdvice</h4>
<pre class="methodSignature">@Bean
public&nbsp;<a href="../../../../access/prepost/PreInvocationAuthorizationAdvice.html" title="interface in org.springframework.security.access.prepost">PreInvocationAuthorizationAdvice</a>&nbsp;preInvocationAuthorizationAdvice()</pre>
<div class="block">Creates the <a href="../../../../access/prepost/PreInvocationAuthorizationAdvice.html" title="interface in org.springframework.security.access.prepost"><code>PreInvocationAuthorizationAdvice</code></a> to be used. The default is
<a href="../../../../access/expression/method/ExpressionBasedPreInvocationAdvice.html" title="class in org.springframework.security.access.expression.method"><code>ExpressionBasedPreInvocationAdvice</code></a>.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the <a href="../../../../access/prepost/PreInvocationAuthorizationAdvice.html" title="interface in org.springframework.security.access.prepost"><code>PreInvocationAuthorizationAdvice</code></a></dd>
</dl>
</li>
</ul>
<a id="setImportMetadata(org.springframework.core.type.AnnotationMetadata)">

</a>
<ul class="blockList">
<li class="blockList">
<h4>setImportMetadata</h4>
<pre class="methodSignature">public final&nbsp;void&nbsp;setImportMetadata&#8203;(org.springframework.core.type.AnnotationMetadata&nbsp;importMetadata)</pre>
<div class="block">Obtains the attributes from <a href="EnableGlobalMethodSecurity.html" title="annotation in org.springframework.security.config.annotation.method.configuration"><code>EnableGlobalMethodSecurity</code></a> if this class was
imported using the <a href="EnableGlobalMethodSecurity.html" title="annotation in org.springframework.security.config.annotation.method.configuration"><code>EnableGlobalMethodSecurity</code></a> annotation.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code>setImportMetadata</code>&nbsp;in interface&nbsp;<code>org.springframework.context.annotation.ImportAware</code></dd>
</dl>
</li>
</ul>
<a id="setObjectPostProcessor(org.springframework.security.config.annotation.ObjectPostProcessor)">

</a>
<ul class="blockList">
<li class="blockList">
<h4>setObjectPostProcessor</h4>
<pre class="methodSignature">@Autowired(required=false)
public&nbsp;void&nbsp;setObjectPostProcessor&#8203;(<a href="../../ObjectPostProcessor.html" title="interface in org.springframework.security.config.annotation">ObjectPostProcessor</a>&lt;java.lang.Object&gt;&nbsp;objectPostProcessor)</pre>
</li>
</ul>
<a id="setMethodSecurityExpressionHandler(java.util.List)">

</a>
<ul class="blockList">
<li class="blockList">
<h4>setMethodSecurityExpressionHandler</h4>
<pre class="methodSignature">@Autowired(required=false)
public&nbsp;void&nbsp;setMethodSecurityExpressionHandler&#8203;(java.util.List&lt;<a href="../../../../access/expression/method/MethodSecurityExpressionHandler.html" title="interface in org.springframework.security.access.expression.method">MethodSecurityExpressionHandler</a>&gt;&nbsp;handlers)</pre>
</li>
</ul>
<a id="setBeanFactory(org.springframework.beans.factory.BeanFactory)">

</a>
<ul class="blockListLast">
<li class="blockList">
<h4>setBeanFactory</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;setBeanFactory&#8203;(org.springframework.beans.factory.BeanFactory&nbsp;beanFactory)
                    throws org.springframework.beans.BeansException</pre>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code>setBeanFactory</code>&nbsp;in interface&nbsp;<code>org.springframework.beans.factory.BeanFactoryAware</code></dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>org.springframework.beans.BeansException</code></dd>
</dl>
</li>
</ul>
</li>
</ul>
</section>
</li>
</ul>
</div>
</div>
</main>

<footer role="contentinfo">
<nav role="navigation">

<div class="bottomNav"><a id="navbar.bottom">

</a>
<div class="skipNav"><a href="GlobalMethodSecurityConfiguration.html#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.bottom.firstrow">

</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../../../allclasses.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_bottom");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="GlobalMethodSecurityConfiguration.html#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="GlobalMethodSecurityConfiguration.html#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="GlobalMethodSecurityConfiguration.html#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="GlobalMethodSecurityConfiguration.html#method.detail">Method</a></li>
</ul>
</div>
<a id="skip.navbar.bottom">

</a></div>

</nav>
</footer>
<script>if (window.parent == window) {(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','//www.google-analytics.com/analytics.js','ga');ga('create', 'UA-2728886-23', 'auto', {'siteSpeedSampleRate': 100});ga('send', 'pageview');}</script><script defer src="https://static.cloudflareinsights.com/beacon.min.js/v652eace1692a40cfa3763df669d7439c1639079717194" integrity="sha512-Gi7xpJR8tSkrpF7aordPZQlW2DLtzUlZcumS8dMQjwDHEnw9I7ZLyiOj/6tZStRBGtGgN6ceN6cMH8z7etPGlw==" data-cf-beacon='{"rayId":"7040def2cb4397cf","token":"bffcb8a918ae4755926f76178bfbd26b","version":"2021.12.0","si":100}' crossorigin="anonymous"></script>
</body>
</html>
